package com.bestcem.xm.ticket.dao.mapper;

import com.bestcem.xm.ticket.entity.mongo.RspdTimer;
import com.bestcem.xm.ticket.entity.mysql.RspdTimerDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

/**
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021/9/17 18:53
 */
@Mapper
public interface RspdTimerDaoMapper {

    int insert(RspdTimerDO entity);

    List<RspdTimerDO> findByExpireBetween(int curTime, int oldTime, Integer status);

    int updateExpireByRspdTimerId(String rspdTimerId, Integer expire, Date updateTime);

    void updateTimerStatus(String id, Integer status);

    RspdTimer findById(String id);
}
